﻿using System;
using System.Linq;
using System.Web.Mvc;
using MiniWeb.Core.Entities;
using MiniWeb.Task;

using WFramework.Mappers;
using WFramework.MvcPager;

namespace MiniWeb.Web.Controllers.Admin.WebLoginLogManager
{
	
	public  class WebLoginLogManagerController:BaseController
	{
	     private readonly WebLoginLogTask _webloginlogTask = new WebLoginLogTask();
	 
	     public ActionResult List(int pageIndex=1, int pageSize=20)
        {
            var pagedList = _webloginlogTask.GetPagedList(pageIndex, pageSize);



            var model = new PagedList<WebLoginLog>(pagedList.ToList(), pageIndex, pageSize, pagedList.TotalItemCount);

            return View(model);
        }
        
 

     

        #region 删除用户信息 Delete

        [HttpPost]
        public void Delete(int id)
        {
            _webloginlogTask.Delete(id);
        }

        #endregion
	}
}